home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Deutsche Edition 1
/
Deutsche Edition 1.iso
/
amok
/
041-050
/
amok47
/
oberonced
/
obced.doc
< prev
next >
Wrap
Text File
|
1993-11-04
|
4KB
|
117 lines
ObCED-Documentation
Author: Achim Siebert, Nobileweg 40, 7000 Stuttgart 40.
This program is in the Public Domain (one of the last ones, maybe -
donations welcome, though). You may do with it whatever you want to do. I
would be grateful for convenient suggestions for improvement. If you
ingeniously change the program then please send me a copy.
What it does:
ObCED/ObCEDCall calls OBERON and OLink out of CygnusEd and shows error
messages. You don't need AREXX (would be better, though).
USAGE: Run ObCED [c][l][e][opt] |[next] |[prev] |[first] |[quit]
ObCEDCall [c][l][e][opt] |[next] |[prev] |[first] |[quit]
Prerequisites for perfect operation of this program:
CygnusEd Professional Release 2 loaded.
"OBERON:Fehler-Meldungen" exists (sorry, my brother is still working on the
english version of the OBERON system).
"T:" exists (best place for it: 'RAM:').
Commands "stack" and "path" are in the "C:" directory.
The file's name must contain the extension ".mod" and correspond to the
name of the module (of course).
Files produced by compiler and linker will automatically go to the right
drawer. You may also use "txt" drawers for the source texts.
Memory consumption: nearly 55k.
Description of the program's options:
c : start compiler. \
l : start linker. > any combination possible.
e : start the new program. /
opt: asks for compiler, linker and program options. Default for complier
and linker : "-md".
Only possible together with "c", "l" and/or "e".
first: show the first error, if existing. Will be invoked automatically
if the compiler creates an error file.
next: show the next error (only possible if still in the same file,
otherwise shows the first error).
prev: show the previous error (corresponding to "next").
quit: guess what...
Without options the program will be loaded into memory and will wait to be
invoked by itself, by ObCEDCall or by AREXX. Starting ObCED again without
an option will remove it from memory.
ObCEDCall: For those who don't own AREXX. This small program sends the
required option to the running ObCED. Usage: same as ObCED. Best thing
to do is to make ObCEDCall resident and call it from a CygnusEd macro. If
ObCED is not already in memory, ObCEDCall will try to load it (so ObCED
should be found in the current path - or put it into the C: directory).
It's function is comparable to that of CygnusEd's "ED".
Examples:
1.
Call: ObCEDCall cleopt
or:
ObCEDCall -elcopt
or:
ObCEDCall optlec ...
Function: asks for compiler and linker options, starts OBERON and, if
there are no errors, OLink. Then it will ask for the new program's options
and starts the executable program with those options.
2.
Call: ObCEDCall prev
Function: if there is an error file (...modE) and the module was compiled
before, then the previous error will be shown. If you didn't compile the
file using ObCED, then the first error will be shown, if existing.
Calling ObCED from AREXX
RX "address ob_ced; option"
where "option" is the same as in the ObCED(Call) usage, i.e. the
examples above will look like this:
1. RX "address ob_ced; cleopt" or: RX "address ob_ced; copt;lopt;eopt"
2. RX "address ob_ced; prev"
Of course you may send the option by using CygnusEd's command "Send
Dos/ARexx command..." as well, giving it the command "address ob_ced;
option"; and put it to any key by using a macro. So you won't have to
call RX explicitly.
Watch out: Don't send ObCED an option it doesn't know. You may get what
you want ( "address ob_ced; nonsense" for instance will start the
executable, because there is an "e" in the string!).
TIP: start CygnusEd with the "-keepio" option. This will speed up the
error messages dramatically, because CygnusEd won't open it's command
window which takes a lot of time.
Changing the compiler and linker defaults
Change line 302 of the source ObCED.mod and do a new compilation:
compoptions := "-md "; linkoptions := "-md ";
Don't forget the space at the end of the string!
Spread the program, not the word!!! Achim.